$(function(){
	console.log("替换网页中的前十个图片!");
	// 注意在这里设置背景图片的时候只能够制定远程的绝对地址不能够指定相对地址
	$("body").css("background-color","lightyellow")
			.css("background-image","url(https://thumbnail10.baidupcs.com/thumbnail/c21bc8a7149d1a1cc1f568e75a7af38a?fid=638867141-250528-165077089170233&rt=pr&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-DKaDyZJRQR%2fTbs2Mal4zBDC4OmM%3d&expires=8h&chkbd=0&chkv=0&dp-logid=3144029918688540430&dp-callid=0&time=1526446800&size=c1366_u768&quality=90&vuk=638867141&ft=image&autopolicy=1)");
	var imgs = $("img");
	$.each(imgs, function(index) {
		/*let w = $(this).attr("width");
		let h = $(this).attr("height");
		$(this).attr("width",w);
		$(this).attr("height",h);*/
		if(index > 2 && index < 13){
			$(this).attr("src","https://thumbnail10.baidupcs.com/thumbnail/d2fe3b18d934113dea33e801fa6b58bf?fid=638867141-250528-894688057626587&rt=pr&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-0D8w1yRxN%2b7t8imYigk78T%2fEzoQ%3d&expires=8h&chkbd=0&chkv=0&dp-logid=3143932613862852877&dp-callid=0&time=1526446800&size=c1366_u768&quality=90&vuk=638867141&ft=image&autopolicy=1");
		}else{
			return;
		}
	});
})